<%@page import="java.util.List"%>
<%@page import="com.wanmait.travel.vo.Scenic"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
	<%
	String path=request.getServletContext().getContextPath();
	List<Scenic> scenics=(List<Scenic>)request.getAttribute("scenics");
	for( int i=0;scenics!=null&&i<scenics.size();i++){
		Scenic scenic=scenics.get(i);
	%>
		<div onclick="window.open('<%=path %>/ShowServlet?action=list&id=<%=scenic.getId() %>','_self')">
		
		<div onmouseover="pointtest(<%=scenic.getId() %>)" style="width:49.7%;height:500px;background:white;border:1px solid black;float:left;">
		
		<div style="width:99.7%;height:350px;background:white;border:1px solid black;">
		<img src="/Travel/image/<%=scenic.getIntroPic() %>"/>
		</div>
		<div style="width:99.7%;height:60px;background:white;border:1px solid black;">
		<%=scenic.getName() %>
		</div>
		<div style="width:99.7%;height:50px;background:white;border:1px solid black;">
		位置:
		<%=scenic.getLocation()%>
		</div>
		<div style="width:49.7%;height:30px;background:white;border:1px solid black;float:left;">
		开放时间:
		<%=scenic.getOpenTime()%>
		</div>
		<div style="width:48.7%;height:30px;background:white;border:1px solid black;float:right;">
		关闭时间:
		<%=scenic.getCloseTime()%>	
		</div>
		</div>
		</div>	
	<%
	}
	%>